@echo off
set LOG_FILE=%1
findstr /i "error" %LOG_FILE%
for /f %%a in ('findstr /i "[^f]error" %LOG_FILE% ^|findstr /V /i /C:"0 error"') do (
	echo compile failed, there are erros in [%LOG_FILE%]
	exit 1
)
@echo on